﻿<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
          "http://www.w3.org/TR/html4/loose.dtd">
<html>

<head>
    <title>完整demo</title>



</head>

<body>

    <div id="app">
        <button v-on:click="say">测试</button>
        <textarea name="" id="" cols="30" rows="10" v-model="html"></textarea>
    </div>

    <script src="../src/lib/vue.js"></script>
    <script>
        var app = new Vue({
            el: '#app',
            data: {
                html: '<div>helo</div>'
            },
            methods: {
                say: function() {
                    alert(this.html);
                }
            }
        });
    </script>

</body>

</html>